<?php
/**
 * 聚水潭
 * @author           程顺伟
 * @lastmodify       2022-06-26
 */

defined('IN_YZMPHP') or exit('Access Denied');
new_session_start();
yzm_base::load_common('class/jst.class.php');
class wxapp{
    public function __construct(){
		header("Access-Control-Allow-Origin: *");//允许所有地址跨域请求
    }
	
	public function get_config(){
		return false;
		$jst_list = get_jst_list();
		$result = [
			//佑晟配置
			'jst_access_token' => $jst_list[1]['access_token'],
			'jst_access_token_expires_in' => $jst_list[1]['expires_in'],
			'jst_app_key' => $jst_list[1]['app_key'],
			'jst_app_secret' => $jst_list[1]['app_secret'],
			
			//雅鹿配置
			'jst_jeep_access_token' => $jst_list[2]['access_token'],
			'jst_jeep_access_token_expires_in' => $jst_list[2]['expires_in'],
			'jst_jeep_app_key' => $jst_list[2]['app_key'],
			'jst_jeep_app_secret' => $jst_list[2]['app_secret'],
			
		];
		echo json_encode($result);
	}

}